//
//  LOAppDelegate.h
//  LegalObserver
//
//  Created by Roxanne Brittain on 10/30/11.
//  Copyright (c) 2011 Digifit. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TestFlight.h"
#import "LOIncident.h"
#import "LOMedia.h"
#import <MessageUI/MFMailComposeViewController.h>

@interface LOAppDelegate : UIResponder <UIApplicationDelegate, UITabBarControllerDelegate>

@property (strong, nonatomic) UIWindow *window;

@property (strong, nonatomic) UITabBarController *tabBarController;

+(NSMutableArray *)getIncidentArray;
+(void)saveIncidentArray:(NSMutableArray *)array;

//media storing
+(void)addImage:(UIImage *)image;
+(UIImage *)scaleAndRotateImage:(UIImage *)image;
+(void)addVideoURL:(NSURL *)videoURL;
+(NSMutableArray *)getMediaArray;
+(void)saveMediaArray:(NSMutableArray *)array;

//date formatting
+(NSString *)stringFromDate:(NSDate *)date;
+(NSString *)stringFromDate:(NSDate *)date withTime:(BOOL)time;
+(NSDate *)dateFromString:(NSString *)date;
+(NSString *)stringFromDate:(NSDate *)date withFormat:(NSString *)format;
+(NSDate *)dateFromString:(NSString *)string withFormat:(NSString *)format;

//email backup
+(MFMailComposeViewController*)backupIncident:(LOIncident *)incident;
+(MFMailComposeViewController*)backupMedia:(LOMedia *)media;
+(NSString*) stringDescriptionForArray:(NSArray*)array;

@end
